package com.example.designpattern.strategy_pattern.b;

import org.junit.Test;

/**
 * 测试类
 */
public class ClientTest {

    @Test
    public void myTest() throws Exception{
        Context context = new Context();
        //可在运行时指定类型
        context.setAbstractStrategy(new ConcreteStrategyA());
        context.algorithm();
    }
}
